package de.gruessing.gwtsports.shared.mappeddata.tcdata;

import com.google.gwt.user.client.rpc.IsSerializable;

public enum SportDTO implements IsSerializable
{
  RUNNING("Running"),
  BIKING("Biking"),
  OTHER("Other");
  private String value;
  
  SportDTO()
  {
  	
  }
  
  SportDTO(String v) {
      value = v;
  }

  public String value() {
      return value;
  }

  public static SportDTO fromValue(String v) {
      for (SportDTO c: SportDTO.values()) {
          if (c.value.equals(v)) {
              return c;
          }
      }
      throw new IllegalArgumentException(v);
  }
}
